package com.yonyou.sto.modules.ims.service;

import com.yonyou.sto.modules.ims.model.ImsBillItem;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yonyou.sto.modules.ims.model.ImsInvoiceItem;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author aegon
 * @since 2020-10-10
 */
public interface ImsBillItemService extends IService<ImsBillItem> {

    /**
     * 添加发票明细
     * @param id
     * @param billSerial
     * @param invoiceItems
     * @return
     */
    boolean addBillItem(long id, String billSerial, List<Map<String, Object>> items);

    /**
     * 根据收款单id查询单据明细
     * @param collect
     * @return
     */
    List<ImsBillItem> listByBillIds(List<Long> collect);
}
